package com.ps.pojo.dept;

import com.google.gson.annotations.Expose;
import com.ps.pojo.setting.Area;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;


/**
 * Department entity. @author MyEclipse Persistence Tools
 */

public class Department  implements java.io.Serializable {


    // Fields    

     private Integer departmentId;
     private Integer areaId;
     @Expose (serialize = true)
     private String name;
     private Integer fatherId;
     private String remark;
     private Integer inputerId;
     private Timestamp inTime;
     private Area area;
     


     
     @Expose(deserialize = false,serialize = false)
     private Collection childDepartments = new ArrayList(0);


    // Constructors

    /** default constructor */
    public Department() {
    }

	/** minimal constructor */
    public Department(Integer areaId, String name, Integer fatherId, Integer inputerId) {
        this.areaId = areaId;
        this.name = name;
        this.fatherId = fatherId;
        this.inputerId = inputerId;
    }
    
    /** full constructor */
    public Department(Integer areaId, String name, Integer fatherId, String remark, Integer inputerId, Timestamp inTime, Area area,  Collection childDepartments) {
        this.areaId = areaId;
        this.name = name;
        this.fatherId = fatherId;
        this.remark = remark;
        this.inputerId = inputerId;
        this.inTime = inTime;
        this.area = area;

        this.childDepartments = childDepartments;
    }

   
    // Property accessors

    public Integer getDepartmentId() {
        return this.departmentId;
    }
    
    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public Integer getAreaId() {
        return this.areaId;
    }
    
    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public Integer getFatherId() {
        return this.fatherId;
    }
    
    public void setFatherId(Integer fatherId) {
        this.fatherId = fatherId;
    }

    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getInputerId() {
        return this.inputerId;
    }
    
    public void setInputerId(Integer inputerId) {
        this.inputerId = inputerId;
    }

    public Timestamp getInTime() {
        return this.inTime;
    }
    
    public void setInTime(Timestamp inTime) {
        this.inTime = inTime;
    }

    public Area getArea() {
        return this.area;
    }
    
    public void setArea(Area area) {
        this.area = area;
    }



    public Collection getChildDepartments() {
        return this.childDepartments;
    }
    
    public void setChildDepartments(Collection childDepartments) {
        this.childDepartments = childDepartments;
    }
   








}